<?php

namespace maotool\core;

use maotool\core\session\Driver;

class Session
{

    /**
     * 会话名称
     *
     * @return string
     */
    public function getName() {
        $driver = Container::getInterface(Driver::class);
        return $driver->getName();
    }

    /**
     * 会话编号
     *
     * @return string
     */
    public function getId() {
        $driver = Container::getInterface(Driver::class);
        return $driver->getId();
    }

}